import Vue from 'vue'
import App from './App.vue'
import router from './router'
import instance from './utils/http'
import './components/index'
// 完整引入，main.js写入以下代码
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// 导入
import GeekChannel from './components/geek-channel.vue'
// 全局注册
Vue.component(GeekChannel.name, GeekChannel)
// Vue.use(ElementUI)
Vue.config.productionTip = false
// 把instance 挂载到window，即vue原型上，每个组件都是vue的实例，方便调试
Vue.prototype.$http = instance
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
